# -*- coding:utf-8 -*-


# 时间函数
import time
import calendar


def main():
    time1 = time.localtime()
    time2 = time.asctime(time1)
    print(time1)
    print(time2)

    time3 = time.strftime("%Y-%m-%d %H:%M:%S", time1)
    print(time3)


def calen():
    cal = calendar.month(2016, 1)
    print("以下输出2016年1月份的日历:")
    print(cal)


if __name__ == '__main__':
    main()
    calen()
